package com.ys.commons.constant;

/**
 * 响应码
 *
 * @author zengchao
 * @date 2021-07-03 09:52:24
 */
public enum ResponseCode {
    /**
     * 请求成功
     */
    OK("2000","请求成功"),
    /**
     * 请求异常
     */
    ERROR("5000","请求异常");


    private final String code;
    private final String message;

    ResponseCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
